﻿<Window x:Class="WpfWebScanner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="353"
        FocusManager.FocusedElement="{Binding ElementName=txtUrl}">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="22"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Menu>
            <MenuItem Header="_File">
                <MenuItem Header="_New..." />
                <Separator />
                <MenuItem Header="_Open..." />
                <Separator />
                <MenuItem Header="_Save" />
                <MenuItem Header="_Save As..." Click="MenuItemSaveAs_Click"/>
                <Separator />
                <MenuItem Header="_Exit" />
            </MenuItem>
        </Menu>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="52"/>
            </Grid.ColumnDefinitions>

            <TextBox 
                Name="txtUrl" 
                Text="http://" 
                Grid.Column="0"
                Margin="2 2 2 0"/>
            <Button 
                Grid.Column="1" 
                Name="btnScan" 
                IsDefault="True" 
                Content="Scann" 
                Width="50" 
                Height="20"
                Margin="0 2 2 0"
                Click="btnScan_Click" />
        </Grid>

        <Grid  Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="4*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <TextBox 
                Name="txtHtml" 
                Grid.Column="0"
                Margin="2 2 4 2"
                AcceptsReturn="True" 
                AcceptsTab="True"  
                VerticalScrollBarVisibility="Auto"/>
            <GridSplitter 
                HorizontalAlignment="Right" 
                Width="4"
                Margin="0 2 0 2"
                ShowsPreview="True" />
            <TextBox 
                Name="txtResult" 
                Grid.Column="1" 
                Margin="0 2 2 2"
                VerticalScrollBarVisibility="Auto"/>
        </Grid>
    </Grid>
</Window>
